package com.share.demo.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * caifan 2017/9/15
 * 分页查询
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Page {
    private Integer limit;//每页显示数据量
    private Integer offset;//偏移量
    private List<?> list;//数据
    private Integer curPage;//当前页
    private Integer total;//总记录数

    public Page(Integer offset, Integer limit) {
        this.offset = offset;
        this.limit = limit;
    }
}
